﻿namespace MemoryTest_Communications.PropertySearch.Resources
{
    using System.Xml.Serialization;
    using Newtonsoft.Json;

    [JsonObject(MemberSerialization.OptIn)]
    [XmlTypeAttribute(TypeName = "attribution")]
    public class Attribution
    {
        public Attribution(){}

        [JsonProperty("img_height")]
        [XmlAttribute(AttributeName = "img_height", Type = typeof(int))]
        public int ImageHeight { get; set; }

        [JsonProperty("link_to_img")]
        [XmlAttribute(AttributeName = "link_to_img", Type = typeof(string))]
        public string ImageLink { get; set; }

        [JsonProperty("img_url")]
        [XmlAttribute(AttributeName = "img_url", Type = typeof(string))]
        public string ImageUrl { get; set; }

        [JsonProperty("img_width")]
        [XmlAttribute(AttributeName = "img_width", Type = typeof(int))]
        public int ImageWidth { get; set; }
    }

}
